//
//  WBTestViewController.swift
//  weiboD
//
//  Created by gao2015 on 2016/12/1.
//  Copyright © 2016年 gao2015. All rights reserved.
//

import UIKit

class WBTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.green
        setupUI()
    }
    func setupUI() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", target: self, action: #selector(pushAction))
    }
    
    @objc private func pushAction() {
        
        let testVC = WBTestViewController()
        
        self.navigationController?.pushViewController(testVC, animated: true)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
